<?php

namespace App\Http\Middleware;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redis;

class Token
{
    public function handle(Request $request, \Closure $next)
    {
        $clientType = $request->header('client-type');
        if (empty($clientType)) {
            return response()->json([

            ]);
        }

        Redis::connection()->get('token');
        return $next($request);
    }
}
